
/*
 * Hlpay-Plus aggregate payment system. Copyright
 * (c) 2022-2023 Hlpay Team Copyright has the right of final interpretation.
 */
package com.hlkj.pay.infrastructure.model.admin;

import com.baomidou.mybatisplus.annotation.TableName;
import com.hlkj.framework.mybatis.core.dataobject.BaseDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author HlpayTeam
 * @date 2024/09/03 14:10
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("t_admin_permission")
public class PermissionDO extends BaseDO {

    private static final long serialVersionUID = -3543834382681843107L;

    /**
     * 权限code
     */
    private String code;

    /**
     * 路由名称
     */
    private String name;

    /**
     * 权限名称
     */
    private String parentCode;


    /**
     * 权限类型： 1 模块 2 菜单 3 按钮
     * @see AdminPermissionEnum.PERMISSION_TYPE
     */
    private Integer type;
    
    /**
     * 路由地址
     */
    private String path;
    /**
     * 默认路由名称
     */
    private String redirect;
    /**
     * 组件路径
     */
    private String component;
    
    
    private String metaInfo;
    /**
     * 接口请求对应的url
     */
    private String url;

    /**
     * 权限标识，对应按钮级别
     */
    private String perms;
    
    @Schema(description = "1 运营平台 2 代理 3 商户")
    private Integer sysType;
    @Schema(description = "排序")
    private Integer sort;
}
